package com.example.springbootdemo.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * goods对象 goods
 * 
 * @author ruoyi
 * @date 2025-04-03
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品编号 */
    private Long gid;

    /** 分类id */
    private Long cid;

    /** 货物名称 */
    private String gname;

    /** 货物图片 */
    private String gimg;

    /** $column.columnComment */
    private String gsn;

    /** 货物价格 */
    private BigDecimal price;

    /** 优惠价格 */
    private BigDecimal saleprice;

    /** 详细标题 */
    private String detailtitle;

    /** 存货 */
    private BigDecimal stock;

    /**  低库存 */
    private String lowstock;

    /** 配套数 */
    private String unit;

    /** 重量 */
    private BigDecimal weight;

    /** 生产商 */
    private Long publishstate;

    /** 礼品 */
    private Long giftpoint;

    /** 检验状态 */
    private Long verifystate;

    /** 到货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date sendtime;

    /** 售出数量 */
    private Long selesum;

    /** 总价 */
    private String sumsales;
    private String note;
    private Long sort;

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public void setGid(Long gid)
    {
        this.gid = gid;
    }

    public Long getGid() 
    {
        return gid;
    }
    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setGname(String gname) 
    {
        this.gname = gname;
    }

    public String getGname() 
    {
        return gname;
    }
    public void setGimg(String gimg) 
    {
        this.gimg = gimg;
    }

    public String getGimg() 
    {
        return gimg;
    }
    public void setGsn(String gsn) 
    {
        this.gsn = gsn;
    }

    public String getGsn() 
    {
        return gsn;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setSaleprice(BigDecimal saleprice) 
    {
        this.saleprice = saleprice;
    }

    public BigDecimal getSaleprice() 
    {
        return saleprice;
    }
    public void setDetailtitle(String detailtitle) 
    {
        this.detailtitle = detailtitle;
    }

    public String getDetailtitle() 
    {
        return detailtitle;
    }
    public void setStock(BigDecimal stock) 
    {
        this.stock = stock;
    }

    public BigDecimal getStock() 
    {
        return stock;
    }
    public void setLowstock(String lowstock) 
    {
        this.lowstock = lowstock;
    }

    public String getLowstock() 
    {
        return lowstock;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setPublishstate(Long publishstate) 
    {
        this.publishstate = publishstate;
    }

    public Long getPublishstate() 
    {
        return publishstate;
    }
    public void setGiftpoint(Long giftpoint) 
    {
        this.giftpoint = giftpoint;
    }

    public Long getGiftpoint() 
    {
        return giftpoint;
    }
    public void setVerifystate(Long verifystate) 
    {
        this.verifystate = verifystate;
    }

    public Long getVerifystate() 
    {
        return verifystate;
    }
    public void setSendtime(Date sendtime) 
    {
        this.sendtime = sendtime;
    }

    public Date getSendtime() 
    {
        return sendtime;
    }
    public void setSelesum(Long selesum) 
    {
        this.selesum = selesum;
    }

    public Long getSelesum() 
    {
        return selesum;
    }
    public void setSumsales(String sumsales) 
    {
        this.sumsales = sumsales;
    }

    public String getSumsales() 
    {
        return sumsales;
    }

//    @Override
//    public String toString() {
//        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
//            .append("gid", getGid())
//            .append("cid", getCid())
//            .append("gname", getGname())
//            .append("gimg", getGimg())
//            .append("gsn", getGsn())
//            .append("price", getPrice())
//            .append("saleprice", getSaleprice())
//            .append("detailtitle", getDetailtitle())
//            .append("stock", getStock())
//            .append("lowstock", getLowstock())
//            .append("unit", getUnit())
//            .append("weight", getWeight())
//            .append("publishstate", getPublishstate())
//            .append("giftpoint", getGiftpoint())
//            .append("verifystate", getVerifystate())
//            .append("sendtime", getSendtime())
//            .append("selesum", getSelesum())
//            .append("sumsales", getSumsales())
//            .toString();
//    }
}
